﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OPLService.Contract;
using OPLService.BusinessEntities;
using OPLService.Facade;

namespace OPLService.Impl
{
    public class OPLService : IOPLService
    {
        OPLServiceFacade _facde;
        public string GetData(int value)
        {
            return "You have entered : " + value.ToString();
        }


        public DTO GetNotifications(ulong dateAsElapsedMS, double interval)
        {
            _facde = new OPLServiceFacade();
            return _facde.GetNotifications(dateAsElapsedMS, interval);
        }

        public DTO GetLatestNotifications(int count, int lowerLimit)
        {
            _facde = new OPLServiceFacade();
            return _facde.GetLatestNotifications(count, lowerLimit);
        }

        public DTO AddNotifications(string notifyString)
        {
            _facde = new OPLServiceFacade();
            return _facde.AddNotifications(notifyString);
        }
    }
}
